package com.tanhua.server.controller;

import com.tanhua.server.service.TestSoulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class TestSoulController {

    @Autowired
    private TestSoulService testSoulService;

    @GetMapping("testSoul")
    public Object getPapers() {
        return this.testSoulService.getPapers();
    }

    @PostMapping("testSoul")
    public Object submitPaper(@RequestBody Map<String, Object> param) {
        return this.testSoulService.submitPaper(param);
    }

    @GetMapping("/testSoul/report/{id}")
    public Object getResult(@PathVariable("id") String id) {
        return this.testSoulService.getResult(id);
    }
}
